Optimal. Leaf size=116 \[ \frac {-a \left (B-\frac {a D}{b}\right )+(A b-a C) x}{4 a b \left (a+b x^2\right )^2}-\frac {4 a^2 D-b (3 A b+a C) x}{8 a^2 b^2 \left (a+b x^2\right )}+\frac {(3 A b+a C) \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{8 a^{5/2} b^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 116, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {1828, 653, 211}
\begin {gather*} \frac {(a C+3 A b) \text {ArcTan}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{8 a^{5/2} b^{3/2}}-\frac {4 a^2 D-b x (a C+3 A b)}{8 a^2 b^2 \left (a+b x^2\right )}-\frac {a \left (B-\frac {a D}{b}\right )-x (A b-a C)}{4 a b \left (a+b x^2\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 653
Rule 1828
Rubi steps
\begin {align*} \int \frac {A+B x+C x^2+D x^3}{\left (a+b x^2\right )^3} \, dx &=-\frac {a \left (B-\frac {a D}{b}\right )-(A b-a C) x}{4 a b \left (a+b x^2\right )^2}-\frac {\int \frac {-3 A-\frac {a C}{b}-\frac {4 a D x}{b}}{\left (a+b x^2\right )^2} \, dx}{4 a}\\ &=-\frac {a \left (B-\frac {a D}{b}\right )-(A b-a C) x}{4 a b \left (a+b x^2\right )^2}-\frac {4 a^2 D-b (3 A b+a C) x}{8 a^2 b^2 \left (a+b x^2\right )}+\frac {(3 A b+a C) \int \frac {1}{a+b x^2} \, dx}{8 a^2 b}\\ &=-\frac {a \left (B-\frac {a D}{b}\right )-(A b-a C) x}{4 a b \left (a+b x^2\right )^2}-\frac {4 a^2 D-b (3 A b+a C) x}{8 a^2 b^2 \left (a+b x^2\right )}+\frac {(3 A b+a C) \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{8 a^{5/2} b^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 104, normalized size = 0.90 \begin {gather*} \frac {\frac {\sqrt {a} \left (-2 a^3 D+3 A b^3 x^3+a b^2 x \left (5 A+C x^2\right )-a^2 b (2 B+x (C+4 D x))\right )}{\left (a+b x^2\right )^2}+\sqrt {b} (3 A b+a C) \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{8 a^{5/2} b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.14, size = 98, normalized size = 0.84
method | result | size |
default | \(\frac {\frac {\left (3 A b +a C \right ) x^{3}}{8 a^{2}}-\frac {D x^{2}}{2 b}+\frac {\left (5 A b -a C \right ) x}{8 a b}-\frac {B b +a D}{4 b^{2}}}{\left (b \,x^{2}+a \right )^{2}}+\frac {\left (3 A b +a C \right ) \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{8 a^{2} b \sqrt {a b}}\) | \(98\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.52, size = 122, normalized size = 1.05 \begin {gather*} -\frac {4 \, D a^{2} b x^{2} + 2 \, D a^{3} + 2 \, B a^{2} b - {\left (C a b^{2} + 3 \, A b^{3}\right )} x^{3} + {\left (C a^{2} b - 5 \, A a b^{2}\right )} x}{8 \, {\left (a^{2} b^{4} x^{4} + 2 \, a^{3} b^{3} x^{2} + a^{4} b^{2}\right )}} + \frac {{\left (C a + 3 \, A b\right )} \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{8 \, \sqrt {a b} a^{2} b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 5.31, size = 346, normalized size = 2.98 \begin {gather*} \left [-\frac {8 \, D a^{3} b x^{2} + 4 \, D a^{4} + 4 \, B a^{3} b - 2 \, {\left (C a^{2} b^{2} + 3 \, A a b^{3}\right )} x^{3} + {\left ({\left (C a b^{2} + 3 \, A b^{3}\right )} x^{4} + C a^{3} + 3 \, A a^{2} b + 2 \, {\left (C a^{2} b + 3 \, A a b^{2}\right )} x^{2}\right )} \sqrt {-a b} \log \left (\frac {b x^{2} - 2 \, \sqrt {-a b} x - a}{b x^{2} + a}\right ) + 2 \, {\left (C a^{3} b - 5 \, A a^{2} b^{2}\right )} x}{16 \, {\left (a^{3} b^{4} x^{4} + 2 \, a^{4} b^{3} x^{2} + a^{5} b^{2}\right )}}, -\frac {4 \, D a^{3} b x^{2} + 2 \, D a^{4} + 2 \, B a^{3} b - {\left (C a^{2} b^{2} + 3 \, A a b^{3}\right )} x^{3} - {\left ({\left (C a b^{2} + 3 \, A b^{3}\right )} x^{4} + C a^{3} + 3 \, A a^{2} b + 2 \, {\left (C a^{2} b + 3 \, A a b^{2}\right )} x^{2}\right )} \sqrt {a b} \arctan \left (\frac {\sqrt {a b} x}{a}\right ) + {\left (C a^{3} b - 5 \, A a^{2} b^{2}\right )} x}{8 \, {\left (a^{3} b^{4} x^{4} + 2 \, a^{4} b^{3} x^{2} + a^{5} b^{2}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 3.77, size = 184, normalized size = 1.59 \begin {gather*} - \frac {\sqrt {- \frac {1}{a^{5} b^{3}}} \cdot \left (3 A b + C a\right ) \log {\left (- a^{3} b \sqrt {- \frac {1}{a^{5} b^{3}}} + x \right )}}{16} + \frac {\sqrt {- \frac {1}{a^{5} b^{3}}} \cdot \left (3 A b + C a\right ) \log {\left (a^{3} b \sqrt {- \frac {1}{a^{5} b^{3}}} + x \right )}}{16} + \frac {- 2 B a^{2} b - 2 D a^{3} - 4 D a^{2} b x^{2} + x^{3} \cdot \left (3 A b^{3} + C a b^{2}\right ) + x \left (5 A a b^{2} - C a^{2} b\right )}{8 a^{4} b^{2} + 16 a^{3} b^{3} x^{2} + 8 a^{2} b^{4} x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.60, size = 106, normalized size = 0.91 \begin {gather*} \frac {{\left (C a + 3 \, A b\right )} \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{8 \, \sqrt {a b} a^{2} b} + \frac {C a b^{2} x^{3} + 3 \, A b^{3} x^{3} - 4 \, D a^{2} b x^{2} - C a^{2} b x + 5 \, A a b^{2} x - 2 \, D a^{3} - 2 \, B a^{2} b}{8 \, {\left (b x^{2} + a\right )}^{2} a^{2} b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.33, size = 163, normalized size = 1.41 \begin {gather*} \frac {\frac {C\,x^3}{8\,a}-\frac {C\,x}{8\,b}}{a^2+2\,a\,b\,x^2+b^2\,x^4}+\frac {\frac {5\,A\,x}{8\,a}+\frac {3\,A\,b\,x^3}{8\,a^2}}{a^2+2\,a\,b\,x^2+b^2\,x^4}-\frac {B}{4\,b\,\left (a^2+2\,a\,b\,x^2+b^2\,x^4\right )}-\frac {\left (2\,b\,x^2+a\right )\,D}{4\,b^2\,{\left (b\,x^2+a\right )}^2}+\frac {3\,A\,\mathrm {atan}\left (\frac {\sqrt {b}\,x}{\sqrt {a}}\right )}{8\,a^{5/2}\,\sqrt {b}}+\frac {C\,\mathrm {atan}\left (\frac {\sqrt {b}\,x}{\sqrt {a}}\right )}{8\,a^{3/2}\,b^{3/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________